<template>
  <div class="container">
      <!-- 中间轮播图和九宫格展示区域 -->
      <transition name="fade">
        <router-view/>
      </transition>
      <!-- 底部导航区域 -->
      <tabbar></tabbar>
      <!-- 添加过渡 -->
  </div>
</template>

<script>
import Tabbar from '@/components/Tabbar.vue'
export default {
  name: 'App',
  components: {
    Tabbar
  }
}
</script>

<style lang="scss" scoped>
  .fade-enter{
    opacity: 0;
    transform: translateX(100%);
  }
  .fade-leave-to {
    opacity: 0;
    transform: translateX(-100%);
    position: absolute;
  }
  .fade-enter-active, .fade-leave-active {
    transition:all .5s ease;
  }
  .i-icon{
    font-size: 1rem;
  }
</style>
